package com.lagou.edu.service;

/**
 * @program: stage-3-module-3
 * @description:
 * @author: zhangxiaoyang
 * @date: 2020-09-02 15:27
 **/
public class MonitorServiceImpl implements MonitorService {
    @Override
    public String monitorA(String msg) {
        System.out.println("》》》》》》》》" + msg);
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello,I have received your request:" + msg;
    }

    @Override
    public String monitorB(String msg) {
        System.out.println("》》》》》》》》" + msg);
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello,I have received your request:" + msg;
    }

    @Override
    public String monitorC(String msg) {
        System.out.println("》》》》》》》》" + msg);
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello,I have received your request:" + msg;
    }
}
